package com.zrrd.straw1.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 评论的值对象，用来和前端评论数据进行传递
 */
@Data
@Accessors(chain = true)
public class CommentVo {

    @NotNull(message = "回答id不能为空")
    private Integer answerId ;
    @NotBlank(message="必须填写评论内容")  // null  “”  “ ”
    private String content ;

}
